a, b = input().split()
a = int(a)
b = int(b)

tag = 0
for i in range(a+1):
    for j in range(a+1):
        if i + j == a and 2*i + 4*j == b:
            print(f"{i} {j}")
            tag = 1

if tag == 0:
    print("Data Error!")


